import Cockpit from "@/views/cockpit/index"
import data_analysis from "@/views/cockpit/data_analysis"

export const CockpitRouter = [
    {
        path: "cockpit",
        title:"驾驶舱",
        name: "驾驶舱",
        meta: {
            keepAlive: false,
        },
        show:true,
        component: Cockpit,
        children: [
            {
                path: "data_analysis",
                title:"大数据平台",
                name: "大数据平台",
                meta: {
                    keepAlive: false,
                },
                show:true,
                component: data_analysis,
                children: []
            },
            {
                path: "device_data_details",
                title:"设备大数据状态详情",
                name: "设备大数据状态详情",
                show:false,
                meta: {
                    keepAlive: false,
                },
                component: () => import(/* 设备大数据状态详情 */ '@/views/cockpit/device_details'),
                children: []
            },
            {
                path: "running_state",
                title:"运行状态",
                name: "运行状态",
                show:false,
                meta: {
                    keepAlive: false,
                },
                component: () => import(/* 运行状态 */ '@/views/cockpit/running_state'),
                children: []
            },
            {
                path: "run_list",
                title:"设备运行列表",
                show:true,
                name: "设备运行列表",
                meta: {
                    keepAlive: false,
                },
                component: () => import(/* 设备运行列表 */ '@/views/cockpit/run_list'),
                children: []
            },
            {
                path: "map_home",
                title:"企业的数据统计",
                name: "企业的数据统计",
                show:true,
                meta: {
                    keepAlive: false,
                },
                component: () => import(/* 企业的数据统计 */ '@/views/map/map_home'),
                children: []
            },
            // {
            //     path: "device_control_join",
            //     title:"设备查询入口",
            //     name: "设备查询入口",
            //     show:false,
            //     meta: {
            //         keepAlive: false,
            //     },
            //     component: () => import(/* 企业的数据统计 */ '@/views/cockpit/device_control_join'),
            //     children: []
            // },
        ]
    }
]
